package com.hksj.Intelligentmanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hksj.Intelligentmanagement.dto.GatewayDTO;
import com.hksj.Intelligentmanagement.entity.GatewayEntity;
import com.hksj.Intelligentmanagement.vo.DeviceVo;
import com.hksj.Intelligentmanagement.vo.GatewayVo;
import com.hksj.Intelligentmanagement.vo.MqttAuthVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface GatewayMapper extends BaseMapper<GatewayEntity> {

    List<GatewayVo> queryGatewayListByPage(IPage<GatewayVo> page,@Param("gatewayDTO") GatewayDTO gatewayDTO);

    List<MqttAuthVo> queryMqttAuthListByGatewayId(IPage<MqttAuthVo> page, @Param("gatewayDTO") GatewayDTO gatewayDTO);

    List<DeviceVo> queryDeviceListByGatewayId(IPage<DeviceVo> page, @Param("gatewayDTO") GatewayDTO gatewayDTO);
}
